<template>
  <ych-modal
    :fullscreen="true"
    :title="title"
    :visible="visible"
    :destroyOnClose="true"
    @ok="handleOk"
    @cancel="handleCancel"
    :cancelText="$t('m.common.button.close')">

    <ActAppHttpFormModal ref="form" v-on="$listeners" v-bind="$attrs" @refreshParent="refreshParent"/>
    <template slot="footer">
      <a-button @click="handleCancel">{{ $t('m.common.button.close') }}</a-button>
      <!--<a-button @click="handleOk">测试</a-button>-->
      <a-button @click="handleOk" type="primary">{{ $t('m.common.button.ok') }}</a-button>
    </template>
  </ych-modal>
</template>

<script>

import {FormDialogMixin} from '@/mixins/FormDialogMixin'
import ActAppHttpFormModal from './ActAppHttpFormModal'

export default {
  name: 'ActAppHttpFormDialog',
  mixins: [FormDialogMixin],
  components: {
    ActAppHttpFormModal
  },
  data() {
    return {
      title: this.$t('m.common.label.operate'),
    }
  }
}
</script>
